package com.xymtop.api.implement;


import com.xymtop.api.entity.Project;
import com.xymtop.api.mapper.ProjectMapper;
import com.xymtop.api.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProjectImpl implements ProjectService {

    @Autowired
    private ProjectMapper projectMapper;


    @Override
    public int add(Project project) {
        return projectMapper.add( project);
    }

    @Override
    public int delete(String id) {
        return projectMapper.delete(id);
    }

    @Override
    public int changecontent(String id, String content) {
        return projectMapper.changecontent(id, content);
    }

    @Override
    public int changProgress(String id, String progress) {
        return projectMapper.changProgress(id, progress);
    }

    @Override
    public int changeResoult(String id, String resoult) {
        return projectMapper.changeResoult(id, resoult);
    }

    @Override
    public List<Project> getList( String name) {
        return projectMapper.getList(name);
    }
    @Override
    public List<Project> List(int num) {
        return projectMapper.List(num);
    }

    @Override
    public Project get(String id) {
        return projectMapper.get(id);
    }

    @Override
    public List<Project> ins(String key) {
        return projectMapper.ins(key);
    }

    @Override
    public int ChangeProposal(String id, String proposal) {
        return projectMapper.ChangeProposal(id,proposal);
    }

    @Override
    public int ChangePpt(String id, String ppt) {
        return projectMapper.ChangePpt(id, ppt);
    }
}
